#ifndef _DICOM_STAT_FS_HANDLER_H_
#define _DICOM_STAT_FS_HANDLER_H_

#include "dicom/web_server.h"
#include "gwbase/base/conf.h"

namespace dicom {

class StatfsHandler : public HttpHandler {
 public:
  StatfsHandler(onion_request* req, const DicomConf* conf)
      : HttpHandler(req), conf_(conf) {}

  virtual ~StatfsHandler() {}

  virtual int HandleRequest(onion_request* req, onion_response* resp);

  virtual const char* GetName() const { return "StatfsHandler"; }

  static void RegisterHandler(WebServer* s, const DicomConf* conf);

 private:
  const DicomConf* conf_;
};
}

#endif  // _DICOM_STAT_FS_HANDLER_H_
